<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="java.sql.*" %>
<%@ page contentType="text/html; charset=utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>留言板</title>
</head>
<body>

<%
        String name=(String)session.getAttribute("username");
		
        if(name==null||name.equals("")){
        response.sendRedirect("login.jsp");
        }
     %>
<hr>
<br>
<center>
<form action="note_insert.jsp" method="post">
<table>
<tr>
<td>作者：</td>
 <td><%=session.getAttribute("username") %></td>
</tr>
<tr>
<td>主题：</td>
<td><input name="subject" type="text" size=60></td>
</tr>
<tr>
<td>留言：</td>
<td><textarea name="note" rows="4" cols="60"></textarea></td>
</tr>
<tr>
<td colspan=3><input type="submit" method="send" value="留言">
<input type="reset" value="重新输入"></td>
</tr>
</table>
</form>
<a href=adminlogin.jsp>管理留言</a> 
<a href=shownote.jsp>查看留言</a> 
</center>
</body>
</html>